package cn.tedu.egweibo06.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

@Data
public class CommentDTO {
    @Size(min = 1,max = 140,message = "评论内容长度在1-140之间")
    @ApiModelProperty(value = "评论内容",required = true)
    private String content;
    @Min(value = 200,message = "微博id范围在200-299之间")
    @Max(value = 299,message = "微博id范围在200-299之间")
    @ApiModelProperty(value = "微博id",required = true)
    private Long weiboId;
}
